package com.jpscloud.common.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 系统操作日志表
 * </p>
 *
 * @author kitty
 * @since 2018-10-28
 */
@TableName("tbl_sys_log")
public class SysLog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 日志Id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 服务Id
     */
    private String serviceId;
    /**
     * 日志类型 1:系统默认记录 2:手工记录日志
     */
    private String type;
    /**
     * 日志描述
     */
    private String remark;
    /**
     * 创建者
     */
    private Long createBy;
    /**
     * 日志录入时间
     */
    private Date createTime;
    /**
     * 开始时间
     */
    private Date beginTime;
    /**
     * 结束时间
     */
    private Date endTime;
    /**
     * 操作IP地址
     */
    private String remoteAddr;
    /**
     * 请求URI
     */
    private String requestUri;
    /**
     * 操作方式:GET、POST、PUT、DELETE
     */
    private String method;
    /**
     * 操作提交的数据
     */
    private String params;
    /**
     * 执行时间单位ms
     */
    private Integer costTime;
    /**
     * 删除标记 0:删除 1:有效
     */
    private String delFlag;
    /**
     * 异常信息
     */
    private String exception;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getServiceId() {
        return serviceId;
    }

    public void setServiceId(String serviceId) {
        this.serviceId = serviceId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Long getCreateBy() {
        return createBy;
    }

    public void setCreateBy(Long createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getRemoteAddr() {
        return remoteAddr;
    }

    public void setRemoteAddr(String remoteAddr) {
        this.remoteAddr = remoteAddr;
    }

    public String getRequestUri() {
        return requestUri;
    }

    public void setRequestUri(String requestUri) {
        this.requestUri = requestUri;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getParams() {
        return params;
    }

    public void setParams(String params) {
        this.params = params;
    }

    public Integer getCostTime() {
        return costTime;
    }

    public void setCostTime(Integer costTime) {
        this.costTime = costTime;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getException() {
        return exception;
    }

    public void setException(String exception) {
        this.exception = exception;
    }

    @Override
    public String toString() {
        return "SysLog{" +
        ", id=" + id +
        ", serviceId=" + serviceId +
        ", type=" + type +
        ", remark=" + remark +
        ", createBy=" + createBy +
        ", createTime=" + createTime +
        ", beginTime=" + beginTime +
        ", endTime=" + endTime +
        ", remoteAddr=" + remoteAddr +
        ", requestUri=" + requestUri +
        ", method=" + method +
        ", params=" + params +
        ", costTime=" + costTime +
        ", delFlag=" + delFlag +
        ", exception=" + exception +
        "}";
    }
}
